import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index.js'
import FastClick from 'fastclick'
import '@/plugins/element'
import '@/plugins/cube-ui'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import '@/assets/js/flexible.js'
import 'swiper/dist/css/swiper.css'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/styles/reset.css'
// import '@/assets/styles/border.css'
// 全局样式表
import '@/assets/styles/global.css'
// 字体样式表
import '@/assets/styles/iconfont.css'

import axios from 'axios'
// 配置请求的根路径
axios.defaults.baseUrl = 'http://127.0.0.1:8899'
Vue.prototype.$http = axios

// 配置轮播图插件
Vue.use(VueAwesomeSwiper)
Vue.config.productionTip = false
// 处理移动端click事件300毫秒延迟
FastClick.attach(document.body)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
